/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.breeze.dao;

import java.util.List;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

/**
 *
 * @author huateng
 */
public class BaseDao extends SqlMapClientDaoSupport{
    
    public Object queryForObject(String key,Object obj ){
        return getSqlMapClientTemplate().queryForObject(key, obj);
    }
    
    public List queryForList(String key,Object obj){
        return getSqlMapClientTemplate().queryForList(key, obj);
    }
    
    public int update(String key,Object obj){
        return getSqlMapClientTemplate().update(key, obj);
    }
    
    public Object insert(String key,Object obj){
        return getSqlMapClientTemplate().insert(key,obj);
    }
    
    public int delete(String key,Object obj){
        return getSqlMapClientTemplate().delete(key, obj);
    }
}
